//正例
// 默认不允许逗号前有空格，逗号后需要一个或多个空格
// /*eslint comma-spacing: ["error", { "before": false, "after": true }]*/
export const arr1 = ['1', '2'];
export const arr2 = ['1',, '3'];

function qur(a: string, b: string) {
  return `${a}${b}`;
}
qur('1', '2');

foo(1, true/* comment */, 'text');
foo(1, true /* comment */, 'text');
foo(1, true/* comment *//* comment */, 'text');
foo(1, true/* comment */ /* comment */, 'text');
foo(1, true, /* comment */ 'text');
foo(1, // comment\n true, /* comment */ 'text');

  var foo = 1, bar = 2
, baz = 3;
var arr = [1, 2];
var arr = [1,, 3]
var obj = {"foo": "bar", "baz": "qur"};
foo(a, b);
new Foo(a, b);
function qur(a, b){}
a, b

// this rule does not enforce spacing between two commas
var arr = [
  ,,
  , ,
];

// this rule does not enforce spacing after `[` and before `]`
var arr = [,];
var arr = [ , ];
var arr = [a, b,];
[,] = arr;
[ , ] = arr;
[a, b,] = arr;

// this rule does not enforce spacing before `}`
var obj = {x, y,};
var {z, q,} = obj;
import {foo, bar,} from "mod";

// this rule does not enforce spacing before `)`
foo(a, b,)


